<?php
namespace Admin\Controller;
use Think\Controller;
class FeedbackController extends Controller {
/*帖子列表*/
    public function feedbacklist(){
        //调用模型层获取数据
        $feedbackmodel=M('feedback');
        //var_dump($usermodel);
        $feedback=$feedbackmodel->select();
        //调用视图层显示数据
        $this->feedback=$feedback;

        $this->display();

    }     

    
/*查看帖子详情*/
    public function detail($f_id){
     $feedbackmodel=M('feedback');
     $feedback=$feedbackmodel->table('vm_feedback f,vm_users u')->where("f.f_id=$f_id and f.u_id=u.u_id ")->field('f.*,u.u_phone,u.u_name')->select(); 
     $this->feedback=$feedback;
     $this->display();
    } 
    
    }